<?php

namespace App\Http\Controllers\YApi;

//use Illuminate\Http\Request;
use Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;

use Session;
use Redirect;

use App\Models\Book;

class ScanisbnController extends Controller
{

    public function scanisbn()
    {
        // 根据isbn搜索图书信息，扫码isbn
        $isbn = request::input('isbn');
        $books = Book::Where('isbn', trim($isbn))->first();
        return $books;
    }
    
}